package com.yueyang.sojourn.server.service.sojourn.merchpic;

import com.yueyang.sojourn.server.model.po.SojournMerchPic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-17
 */
@Service
public class SojournMerchPicService {

    @Resource
    private SojournMerchPicMapper sojournMerchPicMapper;


    public int deleteByPrimaryKey(Long id) {
        return sojournMerchPicMapper.deleteByPrimaryKey(id);
    }


    public int insert(SojournMerchPic record) {
        return sojournMerchPicMapper.insert(record);
    }


    public int insertSelective(SojournMerchPic record) {
        return sojournMerchPicMapper.insertSelective(record);
    }

    public void insertList(List<SojournMerchPic> records) {
        sojournMerchPicMapper.insertList(records);
    }

    public SojournMerchPic selectByPrimaryKey(Long id) {
        return sojournMerchPicMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(SojournMerchPic record) {
        return sojournMerchPicMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(SojournMerchPic record) {
        return sojournMerchPicMapper.updateByPrimaryKey(record);
    }

    public void invalidByProjectId(long loginUserId, Long merchId) {
        sojournMerchPicMapper.invalidByProjectId(loginUserId, merchId);
    }
}
